﻿
using System.Collections.Generic;

namespace GDFlacTool.Common
{
    public class TrackTitleCollection : List<TrackTitle>
    {
        public string FindTitleFromFileName(string filename)
        {
            TrackTitle obj =  Find(o => o.FileName == filename);

            return obj.Title;
        }

        public string FindTrackNumberFromFileName(string filename)
        {
            TrackTitle obj = Find(o => o.FileName == filename);

            return obj.Tracknumber;
        }
    }
}
